import 'package:flutter/material.dart';
import 'package:s_mankey/config/resource_mananger.dart';


//首页每个卡片的widget
class HomeCardWidget extends StatelessWidget {

  Widget child;

  HomeCardWidget({this.child});

  @override
  Widget build(BuildContext context) {
    return  Card(
        margin: EdgeInsets.all(AppPadding.Padding10),
    color: Colors.white,
    //设置shape，这里设置成了R角
    shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.all(
    Radius.circular(AppRadiusValue.AppRadiusMiniValue)),
    ),
    //对Widget截取的行为，比如这里 Clip.antiAlias 指抗锯齿
    clipBehavior: Clip.antiAlias,
    semanticContainer: false,
    child: child);
  }
}
